<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
	<title></title>
	<style type="text/css">
		#editor {
			position: fixed;
			border: solid 0px #ccc;
		}
		
		.iceEditor-tool, .iceEditor-drag {
			display: none;
		}
	</style>
</head>
<body style="background-color: #000;">
	<div id="editor"></div>
	<script type="text/javascript" src="iceEditor.min.js"></script>
	<script type="text/javascript">
		var editor = new ice.editor("editor");
		editor.menu = [];
		editor.create();
		document.onreadystatechange = function() {
			if (document.readyState == 'complete') {
				var spacing = parseInt(window.getComputedStyle(document.documentElement)["fontSize"]) / 2 * -1 + 'px';
				document.getElementById('editor').style.marginTop = spacing;
				document.getElementById('editor').style.marginLeft = spacing;
			}
		}

		function setMsg(msg) {
			editor.setValue(msg);
		}

		function getMsg() {
			window.location.href = 'j2c:' + encodeURI(editor.getHTML());
		}
	</script>
</body>
</html>